package com.study.newjava8.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
public class Employee {

    public Employee(int age) {
        this.age = age;
    }

    public Employee(String name, Integer age, double salary) {
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    public Employee(String name, int age) {
        this.name = name;
        this.age = age;
    }

    private String name;
    private Integer age;
    private double salary;
    private Status status;


    public enum Status{
        FREE,
        BUSY,
        VOCATION;
    }
}
